import { success } from '../common/ResResult'
import { Context } from 'koa'
import { get, post } from '../decorator/reqmethoddecorator'
import ReplyService from '../modules/reply/service/ReplyService'
import { Controller } from '../decorator/controllerdecorator'

@Controller('/replymodule')
class ReplyController {
  @post('/addReply')
  async addReply(ctx: Context) {
    const reply = ctx.request.body;
    ctx.body = success(await ReplyService.addReply(reply))
  }
}
